HAL COMP io operation functions migration

This section provides information about the HAL COMP io operation functions migration.

HAL COMP Start

HAL1

HAL2

Function name

  • HAL_COMP_Start()

  • HAL_COMP_Start()

    Note

    For WindowMode use the function HAL_COMP_WINDOW_Start()

Related use cases: COMP comparing by polling


HAL COMP Start IT

HAL1

HAL2

Function name

  • HAL_COMP_Start_IT()

  • HAL_COMP_Start_IT_OneShot()

  • HAL_COMP_Start_IT_AutoRearm()

  • HAL_COMP_Start_IT

    Note

    For WindowMode use the function HAL_COMP_WINDOW_Start_IT()

Related use cases: COMP comparing by interruption


HAL COMP Stop

HAL1

HAL2

Function name

  • HAL_COMP_Stop()

  • HAL_COMP_Stop()

    Note

    For WindowMode use the function HAL_COMP_WINDOW_Stop()

Related use cases: COMP comparing by polling


HAL COMP Stop IT

HAL1

HAL2

Function name

  • HAL_COMP_Stop_IT()

  • HAL_COMP_Stop_IT()

    Note

    For WindowMode use the function HAL_COMP_WINDOW_Stop_IT()

Related use cases: COMP comparing by interruption


HAL COMP IRQHandler

HAL1

HAL2

Function name

HAL_COMP_IRQHandler()

HAL_COMP_IRQHandler()

Parameters

COMP_HandleTypeDef *hcomp

hal_comp_handle_t *hcomp

Related use cases: COMP comparing by interruption